package com.dailyblue.java.spring.ioc.demo5;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "db")
public class DemoB {
    @Resource
    private DemoA da;

    public void b(){
        System.out.println("DemoB`b");
        da.a();
    }
}
